package com.quickpass.order.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description:
 * @author: 弔人
 * @time: 2023/2/8 11:39
 */

public class OrderDetail implements Serializable {
    private static final long serialVersionUID = -26690761539509733L;
    /**
     * id
     */
    private Long id;
    /**
     * 订单ID
     */
    private Long orderid;
    /**
     * 桌号ID
     */
    private Long tableid;
    /**
     * 菜品名称
     */
    private String dname;
    /**
     * 购买数量
     */
    private Integer dnumber;
    /**
     * 菜品单价
     */
    private Double dprice;

    public OrderDetail() {
    }

    public OrderDetail(Long id, Long orderid, Long tableid, String dname, Integer dnumber, Double dprice) {
        this.id = id;
        this.orderid = orderid;
        this.tableid = tableid;
        this.dname = dname;
        this.dnumber = dnumber;
        this.dprice = dprice;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderid() {
        return orderid;
    }

    public void setOrderid(Long orderid) {
        this.orderid = orderid;
    }

    public Long getTableid() {
        return tableid;
    }

    public void setTableid(Long tableid) {
        this.tableid = tableid;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getDnumber() {
        return dnumber;
    }

    public void setDnumber(Integer dnumber) {
        this.dnumber = dnumber;
    }

    public Double getDprice() {
        return dprice;
    }

    public void setDprice(Double dprice) {
        this.dprice = dprice;
    }
}
